package com.xtedu.examproject.entity;

import java.io.Serializable;

public class Role implements Serializable {
    private int id;
    private String roleName;
    private boolean state;

    public Role(int id, String roleName, boolean state) {
        this.id = id;
        this.roleName = roleName;
        this.state = state;
    }

    public Role() {

    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    public boolean isState() {
        return state;
    }

    public void setState(boolean state) {
        this.state = state;
    }

    @Override
    public String toString() {
        return "Role [id" + id + ", roleName" + roleName + ", state" + state + "]";
    }
}
